package auth

import (
	"context"
	"time"
)

// Store 管理Token
type Store interface {
	// Set save token data
	Set(ctx context.Context, tokenString string, expiration time.Duration) error
	// Check check token is exist
	Check(ctx context.Context, tokenString string) (bool, error)
	// Close close store
	Close() error
}
